#ifndef DATAMODEL_H
#define DATAMODEL_H

#include <QAbstractTableModel>
#include <QVector>

struct TableRow
{
    QString month;
    int days;

    TableRow(const QString & name, int num)
    {
        month=name;
        days=num;
    }

    TableRow(){}
};

class DataModel : public QAbstractTableModel
{
    Q_OBJECT

    QVector <TableRow> m_data;
    int m_index;

public:
    explicit DataModel(QObject *parent = 0, int index = 0);

    int rowCount(const QModelIndex & parent) const;
    int columnCount(const QModelIndex &parent) const;
    QVariant data(const QModelIndex &index, int role) const;


signals:

public slots:

};

#endif // DATAMODEL_H
